package com.roncoo.education.system.feign;

import javax.validation.constraints.NotNull;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.roncoo.education.system.feign.biz.FeignRoleUserBiz;
import com.roncoo.education.system.feign.interfaces.IFeignRoleUser;

import lombok.RequiredArgsConstructor;

/**
 * 系统配置
 *
 * @author wujing
 * @date 2022-08-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/system/role/user")
public class FeignRoleUserController implements IFeignRoleUser {

    @NotNull
    private final FeignRoleUserBiz biz;

    @Override
    public boolean isOnlyResourceManager(Long userId) {
        return biz.isOnlyResourceManager(userId);
    }
}
